package com.yilee.idouban.task.common;

/**
 * TaskListener对应AsyncTask的四个重要方法
 * 
 * @author yilee
 * 
 */
public interface TaskListener {

	String getName();

	void onPreExecute(GenericTask task);

	void onPostExecute(GenericTask task, TaskResult result);

	void onProgressUpdate(GenericTask task, Object param);

	void onCancelled(GenericTask task);
}
